<?php

namespace App\Http\Controllers;

use App\Models\Article;
use Illuminate\Http\Request;

class ArticleController extends Controller
{
    /**
     * 显示关于我们页面
     */
    public function aboutUs()
    {
        return view('about.index');
    }

    /**
     * 显示用户协议页面
     */
    public function article($key)
    {
        $article = Article::findByKey($key);
        return view('about.article', ['article' => $article, 'type' => $key]);
    }
}
